#include <glib.h>

int main(int argc, char *argv[])
{
	g_print("In range(3, 0, 10): %d\n", CLAMP(3, 0, 10));
	g_print("Out of range(3, 5, 10): %d\n", CLAMP(3, 5, 10));
	g_print("Out of range(13, 5, 10): %d\n", CLAMP(13, 5, 10));

	g_print("[low>high]Out of range(3, 10, 0): %d\n", CLAMP(3, 10, 0));
	g_print("[low>high]Out of range(3, 10, 5): %d\n", CLAMP(3, 10, 5));
	g_print("[low>high]Out of range(13, 10, 5): %d\n", CLAMP(13, 10, 5));

	return 0;
}
